<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/20 0020
 * Time: 14:19
 */
namespace app\api\controller\v1;
use app\api\model\RankingModel;
use think\Request;

class Ranking
{
    /**获取朋友排行的接口
     * @param Request $request
     * @return \think\response\Json
     */
    public function friends_rankings(Request $request){
        $friends = RankingModel::friends_rankings($request);
        return json($friends);
    }

    /**世界排行
     * @param Request $request
     * @return \think\response\Json
     */
    public function world_rankings(Request $request){
        $rankings = RankingModel::word_rankings($request);
        return json($rankings);
    }
}